package com.easemob.chat;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import java.io.File;

public class NormalFileMessageBody extends FileMessageBody
  implements Parcelable
{
  long fileSize;
  public static final Parcelable.Creator<NormalFileMessageBody> CREATOR = new Parcelable.Creator()
  {
    public NormalFileMessageBody createFromParcel(Parcel paramAnonymousParcel)
    {
      return new NormalFileMessageBody(paramAnonymousParcel, null);
    }

    public NormalFileMessageBody[] newArray(int paramAnonymousInt)
    {
      return new NormalFileMessageBody[paramAnonymousInt];
    }
  };

  public NormalFileMessageBody(File paramFile)
  {
    this.localUrl = paramFile.getAbsolutePath();
    this.fileName = paramFile.getName();
    this.fileSize = paramFile.length();
  }

  NormalFileMessageBody(String paramString1, String paramString2)
  {
    this.fileName = paramString1;
    this.remoteUrl = paramString2;
  }

  public int describeContents()
  {
    return 0;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramParcel.writeString(this.fileName);
    paramParcel.writeString(this.localUrl);
    paramParcel.writeString(this.remoteUrl);
    paramParcel.writeLong(this.fileSize);
    paramParcel.writeString(this.secret);
  }

  public NormalFileMessageBody()
  {
  }

  private NormalFileMessageBody(Parcel paramParcel)
  {
    this.fileName = paramParcel.readString();
    this.localUrl = paramParcel.readString();
    this.remoteUrl = paramParcel.readString();
    this.fileSize = paramParcel.readLong();
    this.secret = paramParcel.readString();
  }

  public String toString()
  {
    return "normal file:" + this.fileName + ",localUrl:" + this.localUrl + ",remoteUrl:" + this.remoteUrl + ",file size:" + this.fileSize;
  }

  public long getFileSize()
  {
    return this.fileSize;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.NormalFileMessageBody
 * JD-Core Version:    0.6.1
 */